import sys
from PySide6.QtWidgets import QApplication, QMainWindow
from Ui_layoutWin2_demo import Ui_Form
from PySide6.QtCore import Slot

class MainWindow(QMainWindow,Ui_Form):
    def __init__(self,parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
    @Slot()    
    def on_pushButton_clicked(self):
        print('收益_min:', self.doubleSpinBox_sy_min.text())
        print('收益_max:', self.doubleSpinBox_sy_max.text())
        print('最大回撤_min:', self.doubleSpinBox_hc_min.text())
        print('最大回撤_max:', self.doubleSpinBox_hc_max.text())
        print('sharp比_min:', self.doubleSpinBox_sp_min.text())
        print('sharp比_max:', self.doubleSpinBox_sp_max.text())
        
if __name__ == '__main__':
    app = QApplication(sys.argv)
    main_window = MainWindow()
    main_window.show()
    sys.exit(app.exec_())
    